package com.code.train.feign;

import com.code.train.resp.CommonResp;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.Date;

/**
 * BusinessFeign
 *
 * @param
 * @author 南汉卿
 * @return
 * @date 2025/8/28 17:16
 */
@FeignClient(name = "train-business" , url = "http://127.0.0.1:8002/business")
public interface BusinessFeign {

    @GetMapping("/admin/daily-train/gen-daily/{date}")
    CommonResp<Object> genDaily(@PathVariable("date") @DateTimeFormat(pattern = "yyyy-MM-dd") Date date);
}
